﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using HasuSLLib;
using System.Collections.Generic;
using HasuSLLib.Attributes;

namespace UIGenDemoModel
{
    [Lookup(LookupServiceType.StaticMethod, "Test", "Test")]
    public class CountryLookup : Lookup
    {
        static CountryLookup()
        {
            countryLookup.Add(new CountryLookup() { Key = "IND", Description= "India" });
            countryLookup.Add(new CountryLookup() { Key = "UK", Description = "UK" });
            countryLookup.Add(new CountryLookup() { Key = "USA", Description = "USA" });
        }
        string _key = string.Empty;

        public override string Key
        {
            get {  return _key; }
            set {_key = value; }
        }

        string _description = string.Empty;

        public override string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        private static IList<ILookup> countryLookup = new List<ILookup>();

        public override IList<ILookup> GetValidList()
        {
            return countryLookup as IList<ILookup>;
        }
    }
}
